add checking login method