Fix the submit bug

Now if the input information is problematic, the form won't be submitted
to the server.