get logging in and loggin out working