Added validations to the model of Course