adds working simple login code