Move authentication into a module.