Validate user input fields