replace user password validation to fix error