Rather using class="error" than explicit styling for error messages.
Ignoring the Services/ subdir.
Trim content before considering it for taking it as an email address.
Validate the email address before using it.