trying to seperated theme rendering/routing from site functionality
fixed login/logout bugs