Fix ajax validation issue