Email validation

A small example of email validation for new users – in PHP.