passing user objects to create or update a user