Fixing submit upload because AJAX is not working