Add logout and login functionality