Check ideological background before appointing people in govt: BJP to states