resource update
fixed crud functionality. Added authentication service