If you're worried about hair loss, get some finasteride or some nizoral. There are a ton of hair loss remedies, so search around to see which ones people have had the best results with. That's the best you can do.
Personally if I notice any hair loss when I run my first test cycle, I will just decide to run mild gear instead. There are plenty of other AAS that will give you decent results and don't affect the hairline. I had great success with anavar and EQ with no hair loss at all.
My father is bald, but there is no hair loss on my mother's side, so maybe I'll be lucky to have those hair genetics.