Login and user management

commit on behalf of DanielLagin