Fixed bug with hidden page. Login check