added user creation and login/logout