Updated thankyou function in users controller