Add RestLogin functionality