Add Basic login and logout logic