the validate method seems to work. still missing some highlighting and shit.