this will check if the license provided by the user is a valid one. valid list of licenses is generated from nix's source code. closes #4496