fixes empty numeric strings in registartion form