Added assertion on login check