added red color to error logs