authentication in restore