controller - improperly scoped var in form validator