Split login and logout to their own file