Authentication complete with logout functionality