Add field type and name classes to inputs