fix warning and add forgotpassword link