add preventInvalidInput property