Conditions not working on the form