fixing register post method