updated user's model, controller and view to use userid instead of id