Authenticate the user before saving it