Added re-direct from home page to either login page or courses page, depending on authenticated or not