Improve the validation of auth_pass

If auth_pass is set, but the value is falsy like '', do_auth will not be
evaluated, so the callback will never be called. Instead of check
if(auth_pass), now we use if(auth_pass !== undefined) to prevent such
situation.