validation link logic