Improved security of communication with face recognition server