I have this code for validate password and email:
const [register, setRegister] = useState({ email: \'\', password: \'\', error: \'\'