Set session code when creating user