still working on login logout process. needs reworking, but this runs.