Log in a user through external api