display error messages inside a container instead of alerts

Added setting *errorMessageContainer* which is null by default. In case it is set all error messages will be displayed inside the defined container.