working on creating sessions for activerecord