loggin payload correctly