Integrated validation with ajax call