Changed error messages
Now alert message is not required. You can set key used to get a localized alert-message string