Here is how to prevent hair loss.