Added cart validation