Add basic email validation and data layer