Implement validate user input