Trying to make login work with altered API