small fix on logic of enrollment (can't enroll if you are teaching the course) and error message from dashboard not getting course id