added login ctrl
removed debug code