import React, { useState, useEffect, useRef } from 'react'; import Nav1 from '../Components/MainNav'; import Nav2 from '../Components/SubNav'; import { Form, Col, Container, Button, Row } from 'react-bootstrap' import { Link, Redirect } from 'react-router-dom' function Login(){ const [validated,setValidated]=useState(false); const handleSubmit=(e)=>{ const form =e.currentTarget; console.log(form) if(form.checkValidity() === false){ e.preventDefault(); e.stopPropagation(); } setValidated(true); } return (