Login/logout functionality completed