That's because the code says "exit":
The server is told to display the Contact.html page but not any of its content. So you could remove "exit" and that should let the page display again with the form and all. Or you could display a message etc. to inform the user of what went wrong, which is normally what you'd do.