take care of checkbox and radiobox types.
Next I'll take care of types options