Bug/authentication integration

Fix accesses to the name attribute of some errores caused exception.
Fix domain checked in PEP authentication instead of User retrieval.
Fix log trying to show error message instead of invalid token.