added logic for adding/updating user
added new routes