Added authentication through the endpoints "/authenticate" and "/logout".