registration app with login and logout