check login on page show