fill post method in register route