add lambdas for authentication