Adding log in endpoint.