My form logic is not working