fixed ajax validation