Adds function to thank users on submission