Validating Ajax request has finished.