Fix resetPassword redirect loop if logged in