send thank you email and error if user id missing