based on my studies and following the mongodb documentation, I implemented functionality of user registration, login and logout.