Conditional logic not working and required fields not either