add conditional to keep_if for user model