refactored validation events
improve inputmode fix