updated redirects for users logging in or signing up on a document page so they stay on that page instead of being redirected to their page