Add checker for invalid assignment