Added permission name checking