Added authentication factory