Validate user inputs