fixes success and error messages for contact form