Fixing the logic when submitting with the trivia form