remove previous protected route features and reimplement (was defective)
revert #931 (implementation is defective)
implement redirection feature ( when you try to visit a protected route, you get redirected to the login page instead of the pagenotfound error, and after logging in you get redirected back to the protected page you initially wanted to visit)
Issue: #1127