Thanks for query,
This is more or less psychological.remove your fear that penis will be loose.
Before sex you go for foreplay like fantasy,kissing,pushing and get excited fully resulting your penis fully erected.
Concentrate your mind in sex,do not think about your problem and you will be succeed.
You can use Viagra
after consulting your doctor.
ok and bye.