finally added user handling w/ login and registration