Adds validations to the car attributes