added validation and confirm page