some errors corrected in ajax, added onsubmit return false