added user creation and login