Tweak input boxes with validation check