Implementation of getMessage(String id)

Implementation of the function getMessage(String id),
Creation of the exception in case of an unlogged user.