Finishing the submit

Aded the in page error
add the save function
and test it