Fix adding of courses. fix and improve inline validation and messages. add email capabilities