Conditions not working on my website (working in preview)