Get and validate user input