How can i give the condition for thank you page?