error in validation, fixed