is there a rule in grammar that says the subject should be in the same case as that of the verb?
Yes, there is such a rule in grammar. The Subject and Verb of a sentence will be in the same case. For example: the subject is "I" and verb is "am." I am playing football.