Integration with login. Added session authentication middleware to users resource.