Have completed coding -- now moving on to testing -- currently not working
Added function to check the types of input for topic assingment step