Finish user edit, update, index, and destroy actions
fixing some bugs from the previous commit