logging out the user if response code is 404. this might change in the future