Api updates; most importantly, added working login