Correct syntax errors preventing form submission