add serverside check when submit form
improve field error
add a flash in template to show success infomation