login ctrl ,logger fix