Working on identity2 authentication