Added Error Dialog

Wrote a custom error dialog (can be changed if needed)