added working POST from client to server for door state and card hash auth