Check for user input