JS validation modifications