adding quick validation of input when studying