Add data verification and display error/success messages