Course form

Fixed Nil Exception when requesting terms for certain accounts (i.e. those that have enrolledSemester but not teachingSemester).

Also some code cleanup on how to deal with error and success notification with the form; use of flash[:notice] and flash[:error]