diff --git a/.env b/.env
index 4fcdc31..16407ac 100644
--- a/.env
+++ b/.env
@@ -9,5 +9,6 @@ REACT_APP_APPSITE=" https://myfitapp.mermsemr.com"
REACT_APP_AUX_ENDPOINT = "https://devapi.mermsemr.com/en/desktop/api/v2/myfit"
REACT_APP_USERS_ENDPOINT = "https://devapi.mermsemr.com/en/desktop/api/v2/myfituser"
+# REACT_APP_PASSWORD_ENDPOINT = "https://devapi.mermsemr.com/en/desktop/api/v2/myfituser/resetpass"
REACT_APP_SESSION_EXPIRE_MINUTES = 5
\ No newline at end of file
diff --git a/src/components/AuthPages/ForgotPassword/index.jsx b/src/components/AuthPages/ForgotPassword/index.jsx
index 4745d89..79405a3 100644
--- a/src/components/AuthPages/ForgotPassword/index.jsx
+++ b/src/components/AuthPages/ForgotPassword/index.jsx
@@ -1,10 +1,40 @@
-import React from "react";
-import { Link } from 'react-router-dom';
+import React, { useState, useEffect } from "react";
+import { Link, useNavigate } from 'react-router-dom';
import titleShape from "../../../assets/images/shape/title-shape-two.svg";
import InputCom from "../../Helpers/Inputs/InputCom";
import AuthLayout from "../AuthLayout";
export default function ForgotPassword() {
+
+ const navigate = useNavigate();
+ const [validation, setValidation] = useState("")
+ const [buttonDisabled, setButtonDisabled] = useState(true)
+
+ // email
+ const [email, setEmail] = useState("");
+ const handleEmail = (e) => {
+ setEmail(e.target.value);
+ };
+
+
+ function validationChecker(email) {
+ const emailCheck = /^[^0-9][a-zA-Z0-9._%+-]+@[a-zA-Z]+(\.[a-zA-Z]+)+$/;
+ if (email === "") {
+ setValidation("email is required");
+
+ } else if (!email.match(emailCheck)) {
+ setValidation('Please input a valid email address');
+
+ } else {
+ setValidation("");
+ setButtonDisabled(false)
+ }
+ }
+
+ useEffect(() => {
+ validationChecker(email)
+ }, [email])
+
return (
<>
{validation}
} +