sostituisci
if ($newpasword=="repeatnewpassword)

con

if ($newpasword==$repeatnewpassword)