add wm-logout directive, remove checkEmail logic, check for user not found error