Fixing login issue