Add :email attribute type
Separate JSON type and format in has_attribute