A generic user login system built with Ruby on Rails