Getting field for registration query