added url validation
commented out resource update method