Use form.php url
move error and success handlers inside the ajax request
Add execute permission to form.php
Add composer vendor folder