Fix Auth. Logout functionality

Auth issues were fixed. Logout functionality was added