enabling form validation; considering input value for choosing step