User authentication with devise, based on RailsCast 209.