button gets disabled on invalid input