initial login code

got through the errors so the page at least loads.  no way it works yet
though. but on our way!