save register data submit to database