Fixed referencing problem for simple login