NPE fixed for bad user login (existing/non-existing user) MID-1843