created generic validateNotes