logic for disable next button