If user enter wrong email while forget password and that email does'n exist in our database then issue produced. that's why i have added user validation above
Steps to Test
Forgot password -> Enter email which doesn't exist in database -> "No account with this email has been registered" this error should be come.
Checklist
[x] I have tested these changes
[x] I have updated the relevant documentation
[x] I have commented my code, particularly in hard-to-understand areas
[x] I have made corresponding changes to the codebase
[x] My changes generate no new warnings or errors
[x] The title of my pull request is clear and descriptive
Description
If user enter wrong email while forget password and that email does'n exist in our database then issue produced. that's why i have added user validation above
Steps to Test
Forgot password -> Enter email which doesn't exist in database -> "No account with this email has been registered" this error should be come.
Checklist