changed register from get to post