added validation to checkout