Login/logout functionality using overlay