Basics of authentication using Rails and React