w6d3 chat app GET (undefined values), POST (Internal Server Error)