That caps lock case is a good one, but I don't really see other realistic instances where you wouldn't just say "username or password is incorrect".
The paper I linked to actually does a good job motivating specific classes of typos by looking at real typos from Dropbox users.