logout and check access page if login