Added addcourse controller action.