Your validation function should check whether there is data provided, and behave as required for the other scenario when there isn’t.
Your validation function should check whether there is data provided, and behave as required for the other scenario when there isn’t.