back to work on login stuff

had to take a detour to add DB functionality so now back to adding login
code