Fixed redirection issue with password resets