checking for invalid company ids on server