fix type in user entity to allow nulls