Added user register
TODO: saving configuration