added max number to validation