Being hard...

Im 20 and my My boyfriend is 19... He cant seem to stay hard when we have sex. He clearly gets upset with himself and when we do have sex he can never cum.... Is it me? Did i do something wrong?