set register for post and get