organizing loging in and out