Initial version of backend authentication