Fix OAuth/Multiauthentication  error.
Validate that a response in an  exception is actually a response.
Validating where validation is due!
Merge branches 'fix-500-error', 'fix-validation' and 'multi-authentication-fix'