added authentication Login and Logout functionality