fixed ajax validation, for now...
added changes from TaoW