added errors alerts