adding error messages in alert bootstrap class