Why `data.msg`? Include something in the template and show it, like with other errors. Also for success message above.