Display error or success message when form works or not