Some if than statements are not working in my form.