Ex-74 Registration Code redemption

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
Merge pull request #5050 from edx/muhhshoaib/Ex-74-registration-code-redemption

Ex-74 Registration Code redemption