Adding brackets in the condition statement will solve this error.
{(password !== "") && ( <div className="col-start-2 col-span-3"> <ValidationList rules={passwordRules} value={password} /> </div> )}