Added basic user login/out, registration, update code