begin ajax setup & validation fixes