functions personal

validating and finalizing with alert of total