filter records based on user