login restructured