basic setup for loginManager. Need to merge permission branch into login branch first.