Made error messages into alerts