fix the translation issues added a check if a user is already registered in a course. Changed the messages added course depth=0 and removed pep8 violations