Im working on a small library project in which i have an input that takes user ID and the book he want to take.Now books has ages for reading and some young user cant take certain books. now i want to raise an error to the user every time he try to take a book that not for his age and that he will be able to correct his input.How can i do that?