authentication-system POST /register - registers a new user POST /login - log in a user, returns token to authenticate further requests validateToken - function to check whether token is valid POST /logout - log out a user, invalidates the user's token GET /profile - returns the profile of logged-in user, this endpoint is secured with the token returned at login PUT /profile - updates the profile of the logged-in user, this endpoint is secured with the token returned at login