added validation also for joomla libraries