Fix determination of reset password link