Started porting validationRule method. Required and email covered