checking server response