Tried linking login button to api. Doesn't work. Please fix!