Login module base, also preparing to rewrite sub modules.