fixed environment variable error for reset mailer and change redirect route to login form