rough implementation of ui.router for login/out