input validation for change password page