changed the way the validation looks