typo and fixing retriveal of value from validator