Fixed User entity deprecation warning