Changed form and PHP to be handled with AJAX