Improve resource creation form, refactoring.