Welcome to HCM
Leaking of seminal fluid from penis during erection or foreplay is not semen instead it is called as precum, it is lubricating fluid that is passed from seminal vesicles in conditions of erection or arousal. It doesn't contain sperms. So it's a normal phenomenon.
Regarding your problem of erection, if you are getting early morning spontaneous erection then most likely you are not having problem. Usually erection problems seen in males are most likely of psychological in origin. So don't worry there is nothing wrong as you are getting proper erection. Try to involve your self in fore play for long. Don't think about not getting erection as it will only worsen the problem.
If you are still in doubt get investigations of testosterone
levels, if it comes normal then you need not to worry.
Hope I cleared your doubt.