New Document button redirects to log in page if not logged in