Disable next button if input data is not valid