Run validations on keydown and add valid class