Show alerts for success and error on form submit