User Authentication for rails using sessions stored in db and session id cookies