Fixed issues with auth and password reset.