Do some basic email address validation

In order to keep it simple and to avoid disallowing valid email
addresses, we use a simple regex (i.e., `/.+@.+\..+/`) to check for
correct email address format.