adds success message animation in and out on form submit