Hi Chinju,
If you check the forum search, similar questions have been asked and answered before regarding custom login and password retrieval/reset functionality. An example: https://forum.mendix.com/link/questions/7765
Many refer to the Mendix App Store, where several helpful widgets can be downloaded into your project. These widgets contain documentation on how to implement them as well.
If you run into any specific questions that have not been answered yet you can post them here.
Good luck!