JC-1508 Added saving user to database after rest registration. Fixed plugin usage.