standardized formatting, added login page/function