changes to register to update database