Correct login/logout/main system implemented