Fixes password reset flow