Protect contact form against spam, major refactoring