-- Added a function to check if the user in authorization header is a valid user of the system