added scopes to user and post models