hiding main page when login is auto