added form checking and AJAX(untested), also fixed button alignment