bug fixing login