fixing login for UI: