Fixing login tests