Add routines to check or clean GUI input