Fixed amp in password input
Fixed some javascript errors