Added the login and user create code from class