<input id="password" className="register-input" type="password" name="password" minLength={8}
                       value={password} onChange={e => setPassword(e.target.value)} required/>