attr_writer added to check the name in proper format before assigning to instance variable
sending name in proper format