bug validation js