Implemented user input and check