Added possibility to choose the type of popup: 'info' or 'error'
Choice in Popup type (info or error)