Validate required field