check for 410 error code and logout user when 410 error code returned from server