User and Course Validation

I added a few lines of code to your user and course model files.