Added basic registration and user handling.