added validations and removed session course_id
fixed templates to work with new controller