register and forgotpw control updated and tested