added validations in course and user models
about to perform manual merge of pull request