Fixed #4833 -- Validate email addresses with localhost as domain