Validity checking & exception handling