[ticket/10896] Add missing email validation lost in develop merge

Fix incomplete merge, by adding a piece of code moved to another file in
olympus back.

PHPBB3-10896