Validation of selecting row