store user id in authinfo property. send user id with photo upload. fix typo in place logic on server