(sinx+tanx)/(1+cosx)=tanx

So far I have,

L.S

(sinx+sinx/cosx)/(1+cosx)

[(sinxcosx+sinx)/(cosx)]/(1+cosx)

(sinxcosx+sinx)/(cosx) * 1/(1+cosx)

(sinxcosx+sinx)/(cosx+cos^2x)

...and now I'm stuck.

Could someone help me solve this and point out what I did wrong?

Thanks