Require model for course object creation

Fix error messages prefixes.