add validation class and styles