People of UP have rejected dynastic politicians:Modi