Added Api calls to apiary for both login and registration