added messages scaffold
re-added ensure_valid_email