validate modal ajax call successful