create if else, show input data, validate data