Updated php mail function

TODO: stop form from reloading page on submit if a field is invalid.
TODO: make it obvious when a field is invalid.