Realized persist register form to database