adding logout and login buttons