fixing login bug