ajax validation implemented