user logout and check user login