redirect from demo login to root when authorized, make login page inheritable