Validating required keys.