Rails 4 User authentication template, based on railscasts/250-authentication-from-scratch-revised