validate user input and reduce Ask pattern usage