name attribute in fields added
mail functionality added