Updated displaying errors and success messages

Updated displaying errors and success messages