mapped the mongoose User object to a cleaner object suitable to write out on the ui