Added User Registration and Login/Logout functionality.