fixed bug to only allow to confirmation page on valid check