Implementation of backend authentication