Refractors login and registration modules.