Implemented validations for coursestoaccounts