Adds log out functonality