starting login restructure