fixing login closes #1