user registration moved to repository