added a validation for start function