finish user edit, update, index and destroy actions (with a little test errors)