Callback for the scanned text validation.
Validates text and returns if it matches the need of the user