Fixed validation bug for password reset.