Login and logout management with secure "remember me" capabilities for Ruby on Rails