Added code based on NG-Book for authentication, but it does not work
Currently commented out for investigation