Move require login to separate module.