Fixed file upload and moved the form to the index page