login check and logout