Adding validations for time and capacity