Simplified invalid login message hiding logic.