added check to the withdraw method.