Added validations to car model