Section 12C(iii) in The U.P. Municipalities Act, 1916
(iii)A member of Parliament or of the Legislature of the State shall not, during the term of his office, cease to be ordinarily resident in the area of a ward merely by reason of his absence from that area in connection with the duties as such member.