added PHP version check, modified scope and added validation display messages