changes to forgotpassword and server scripts