Got login restriction working, needs to redirect after and remember user after refresh.