register

still have some bugs need to fix.error message cannot display.but logic
is right