throw exception when no login is provided