changed the function into registerAuthors and still working on it