move login/logout to home controller