Worked on fixing form submision errors.

Added support for ajax form submit. Still need to fix HTML5 validation,
submit lessages and validation on a actual php script