Devise authentication and redirect from pins and learning modules if accessing without authentication