Added a partial support for form in Resource