added login check (v0.0.2)