User setup

Login functions completed.