How to check if an input is empty in React: using State or Refs
https://medium.com/@glasshost/how-to-check-if-an-input-is-empty-in-react-78d0b0d945bb