Handle sign in with the session method

The recomended in method with an authentication token did not work,
therefore I used the sign in method. I still have to check why it
wasn't working, I do not yet understand how the sign in method works.