[Polish] Rename "validate" option to "onSubmit"

The following discussion from !144 (merged) should be addressed:

  • @ealcantara started a discussion:

    thought (non blocking): We can also name it onSubmit and allow it to return an InputBoxState object with the validity status:

    onSubmit: (): InputBoxState => {
      const error = validateAndSubmitBranchName(branchName, { ref: commitId, isEmptyRepo, projectPath });
      
      if(error) {
        return { valid: false, invalidMessage: error };
      }
    
      return null;
    }