functions: Add checking validity of a license