Restricts access to /courses to logged in users.