Update resources.js

fixed validation on submit