fix passowrd validation issue