move is_valid_email to its separate module