adding validation
cdn for libs, bs3 removed some uneeded code