I was able to validate the input from the user and display appropriate message along with required styling.
What challenges did you encounter, and how did you overcome them?- At first I was not able to think of how to validate the user input efficiently, then I searched on google and came across stack overflow and got the regex required for email and password validation.
- When I first wrote the logic, it was performing well but the code was not much readable and was not upholding the DRY principle .
- I then refactored the code into functions to make it more readable and easy to understand.
I am a beginner in web development so I would appreciate any kind of feedback that would help me improve in writing more efficient and readable code.