on tab validation works