add logout and cleanup register/login transitions