Login create course

Refactors some code, you should be able to commit class path without
any problems