Added function to check if author exists, and if not create the user/author