Fixed login

Now the _id is added to the session, and the login works with the
setted password