Refactored the code and logic of using input fields. We can now pass props like label, placeholder, value, etc. to this new component, so that we not need to spend time on styling and maintaing input fields again and again in whole app.
Also, I fixed some basic html error that were coming into console due to diffrence between html attributes and jsx rules.