Use func/redirect in login and header page.