refactor return value to be object with a status code and a message rather than just an _id string