Fixes error handling when UAA is down or user has invalid email

[#75380048]