proper check for server response in data upload