Fixed registration of new users