small bug in validations