added validations for reset password and forget password pages