Fixing login for back end