#2 Written the code for the user registration, login, and logout functions.