add the function of user register to the database