added ngMessages, validation messages and pattern match on name
changed id to type number
cleaned up course form validation a little