Added login with api