Updated the author controller to check if the author already exists.