add login/registration support